#include "ftr3_driver/ftr3_driver.hpp"
#include <rclcpp/rclcpp.hpp>

int main(int argc, char * argv[])
{
    rclcpp::init(argc, argv);
    
    try {
        auto driver = std::make_shared<ftr3_driver::Ftr3Driver>();
        driver->init();
        driver->start();
        rclcpp::spin(driver);
    } catch (const std::exception& e) {
        RCLCPP_FATAL(rclcpp::get_logger("ftr3_driver"), "Exception caught: %s", e.what());
        return 1;
    }
    
    rclcpp::shutdown();
    return 0;
}
    